import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../../../services/http-client.service';
@Injectable()
export class RouteModeService {

  constructor(public httpClient: HttpClientService) { }

  //查询在途模式分页列表
  routeModeList(getBody) {
    return this.httpClient.get('/pms/v1/riskmanage/qdiiJournal/selectOnTheWay', getBody);
  }
  // //删除
  // del(putBody) {
  //   return this.httpClient.put('/pms/v1/riskmanage/remove', putBody);
  // }
  //撤回
  recall(putBody) {
    return this.httpClient.delete('/pms/v1/riskmanage/qdiiJournal/recall', putBody);
  }
  //在途模式-保存
  save(putBody) {
    return this.httpClient.put('/pms/v1/riskmanage/qdiiJournal/save', putBody);
  }
  //在途模式-提交
  commit(putBody) {
    return this.httpClient.put('/pms/v1/riskmanage/commit', putBody);
  }
  //加锁
  lock(getBody){
    return this.httpClient.get('/pms/v1/riskmanage/qdiiJournal/addLock',getBody)
  }
  
}
